//
//  WBEmoticon.m
//  sinaWeibo
//
//  Created by 李江波 on 2016/11/23.
//  Copyright © 2016年 lijiangbo. All rights reserved.
//

#import "WBEmoticon.h"
#import "NSString+HMEmoji.h"

@implementation WBEmoticon

-(void)setCode:(NSString *)code{

    _code = code;
    
    self.emojiStr = [code emoji];
}

///利用yymodel 解档归档协议
-(instancetype)initWithCoder:(NSCoder *)aDecoder{

    return [self yy_modelInitWithCoder:aDecoder];
}

-(void)encodeWithCoder:(NSCoder *)aCoder{

    [self yy_modelEncodeWithCoder:aCoder];
}

@end
